

struct camera {

	unsigned char* pic_data;
	unsigned char* rgb_data;
	int cam_num;
	int dev;
	int fno;
	char device_name[512];
	struct video_capability cap;
	struct video_window win;
	struct video_channel chan;
	struct video_picture pic;
	struct video_mbuf m_buf;
	struct video_mmap v_map;
	void* map;
	int is_update;
};





struct camera* camera_alloc(char* device_name, int cam_num);
int set_video_window(struct camera* cam);
int capture_init(struct camera* cam);
int capture(struct camera* cam);
void capture_close(struct camera* cam);
